﻿using Microsoft.OpenApi.Models;
using Swashbuckle.AspNetCore.Swagger;
using Swashbuckle.AspNetCore.SwaggerGen;
using System.Collections.Generic;

namespace Web.Client.Utils
{
    /// <summary>
    /// 接口文档Controller描述
    /// </summary>
    public class AuthApplyTagDescriptions : IDocumentFilter
    {
        public void Apply(OpenApiDocument swaggerDoc, DocumentFilterContext context)
        {
            swaggerDoc.Tags = new List<OpenApiTag>
            {
                new OpenApiTag{ Name="Account",Description="账户中心"},
                new OpenApiTag{ Name="Project",Description="产品中心"},
                new OpenApiTag{ Name="Order",Description="订单中心"},
                new OpenApiTag{ Name="User",Description="会员中心"},
            };
        }
    }
}
